﻿#pragma once

#include <QMovie>
#include <QSplashScreen>

class QPixmap;
class QPainter;

class SplashScreen : public QSplashScreen {
    Q_OBJECT

public:
    SplashScreen(const QPixmap& pixmap);
    SplashScreen(const QString gifname);
    ~SplashScreen();

    void set_gif(QString filename);

protected:
    virtual void drawContents(QPainter* painter);

private slots:
    void slot_update();

private:
    QMovie* m_move;

    QPixmap m_current_movie;
};